// site-helper-editView.cpp : implementation file
//

#include "stdafx.h"
#include "site-helper-gui.h"
#include "site-helper-editView.h"


// CsitehelpereditView

IMPLEMENT_DYNCREATE(CsitehelpereditView, CHtmlEditView)

CsitehelpereditView::CsitehelpereditView()
{

}

CsitehelpereditView::~CsitehelpereditView()
{
}

BEGIN_MESSAGE_MAP(CsitehelpereditView, CHtmlEditView)
END_MESSAGE_MAP()

BOOL CsitehelpereditView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CHtmlEditView::PreCreateWindow(cs);
}

extern CString GetAppPath();

void CsitehelpereditView::OnInitialUpdate()
{
	CHtmlEditView::OnInitialUpdate();

	//Navigate2(_T("http://www.msdn.microsoft.com/visualc/"),NULL,NULL);
	TCHAR fileName[1024];
	TCHAR pathName[1024];
	::GetModuleFileName(NULL,fileName,1024);
	::PathGetShortPath(pathName);

	TCHAR workDirName[1024];
	::GetCurrentDirectory(1024,workDirName);

	CString exePath = GetAppPath();
	CString htmlPath = exePath + _T("..\\Media\\TestSite\\index2.html");
	Navigate2(htmlPath.GetBuffer(),NULL,NULL);	
}

// CsitehelpereditView diagnostics

#ifdef _DEBUG
void CsitehelpereditView::AssertValid() const
{
	CHtmlEditView::AssertValid();
}

#ifndef _WIN32_WCE
void CsitehelpereditView::Dump(CDumpContext& dc) const
{
	CHtmlEditView::Dump(dc);
}
#endif
#endif //_DEBUG


// CsitehelpereditView message handlers
